﻿using System;
using System.Collections.Generic;

namespace BenCaoXuan.Infrastructure.EFCore.MySql;

/// <summary>
/// 佣金规则表
/// </summary>
public partial class CommissionRule
{
    /// <summary>
    /// 佣金规格ID
    /// </summary>
    public string CrId { get; set; } = null!;

    /// <summary>
    /// 规则类型（0：服务产品，1：套餐）
    /// </summary>
    public int CrProductType { get; set; }

    /// <summary>
    /// 产品名称
    /// </summary>
    public string CrProductName { get; set; } = null!;

    /// <summary>
    /// 产品ID（规则类型为服务产品时有效）
    /// </summary>
    public string? CrProductId { get; set; }

    /// <summary>
    /// 套餐ID（规则类型为套餐时有效）
    /// </summary>
    public string? CrPackageId { get; set; }

    /// <summary>
    /// 购买次数
    /// </summary>
    public int? CrCount { get; set; }

    /// <summary>
    /// 佣金比例
    /// </summary>
    public decimal CrCommissionRate { get; set; }

    /// <summary>
    /// 规则描述
    /// </summary>
    public string? CrDescription { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CrCreateTime { get; set; }
}
